<?php
/**
 * 公众号页单号相关推送
 * @author lss
 * 2017-05-23
 */
namespace soa\mp\pay;

use soa\client;

class Order  extends client
{
    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://mp.kuaidihelp.com/';

    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_mp';

	//创建订单
	public function create($platform,$info){
		return $this->post("api/pay/Order/create",array_merge([
			"platform" => $platform,
		],$info));
	}

	//查询订单
	public function query($platform,$info){
		return $this->post("api/pay/Order/query",array_merge([
			"platform" => $platform,
		],$info));
	}

	//关闭订单
	public function close($platform,$info){
		return $this->post("api/pay/Order/close",array_merge([
			"platform" => $platform,
		],$info));
	}

	//更新订单状态
	public function updateStatus($platform,$info){
		return $this->post("api/pay/Order/updateStatus",array_merge([
			"platform" => $platform,
		],$info));
	}
}